﻿using CloverNet.Authorization.Demo.Manager.Models;
using CloverNet.Authorization.Demo.Manager.Providers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CloverNet.Authorization.Demo.Manager.Controllers
{
    public class HomeController : Controller
    {
        [DatePermission]
        public ActionResult Index()
        {
            return View();
        }

        [Permission(Permission.P_0005)]
        public ActionResult UserList()
        {
            return View();
        }

        [Permission(Permission.P_0003)]
        public ActionResult RoleList()
        {
            return View();
        }

        [Permission(Permission.P_0004)]
        public ActionResult PermissionList()
        {
            return View();
        }


        [Permission(Permission.P_0005)]
        public ActionResult UserRoleList()
        {
            return View();
        }

        [Permission(Permission.P_0007)]
        public ActionResult UserPermissionList()
        {
            return View();
        }

        [Permission(Permission.P_0006)]
        public ActionResult RolePermissionList()
        {
            return View();
        }
    }
}